//
//  AllVideoTableViewCell.m
//  WuLi
//
//  Created by Gollum on 16/8/31.
//  Copyright © 2016年 Gollum. All rights reserved.
//

#import "AllVideoTableViewCell.h"
#import "UIImageView+WebCache.h"
#import "MyVideoModel.h"
@implementation AllVideoTableViewCell

- (void)awakeFromNib {
    // Initialization code
    _playButton.clipsToBounds = YES;
    _playButton.layer.cornerRadius = 32;
   
}

-(void)setModel:(MyVideoModel *)model{
    self.selectionStyle = UITableViewCellSelectionStyleNone;
//    self.titleLabel.text = model.title;
    self.title.text = model.title;
    [self.mainImage sd_setImageWithURL:[NSURL URLWithString:model.cover] placeholderImage:[UIImage imageNamed:@"default_image"]];
//    self.countLabel.text = [NSString stringWithFormat:@"%ld.%ld万",model.playCount/10000,model.playCount/1000-model.playCount/10000];
//    self.timeDurationLabel.text = [model.ptime substringWithRange:NSMakeRange(12, 4)];
//    self.timeLabel.text = [model.ptime substringWithRange:NSMakeRange(12, 4)];
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
